package com.kiloai.digcust.mvp.presenter;

import com.kiloai.base.basemvp.BasePresenter;
import com.kiloai.base.entity.TalkList;
import com.kiloai.digcust.adapter.TalkCategoriesAdapter;
import com.kiloai.digcust.mvp.view.activity.MainActivity;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by david on 2018/8/15.
 */

public class MainPresenter extends BasePresenter<MainActivity> {

    public void getTalkList(TalkCategoriesAdapter adapter) {
        TalkList talkList = new TalkList();
        talkList.setTitle("陌生拜访");
        List<TalkList> lists = new ArrayList<>();
        lists.add(talkList);
        talkList.setTitle("潜在拜访");
        lists.add(talkList);
        adapter.refreshData(lists);
    }
}
